<template>
	<view>
		<view v-for="(item,index) in list">
			{{item.id}}--{{item.description}}--{{item.security_code}}
		</view>
		
		<view @click="testPage">测试页面</view>
	</view>
</template>

<script>
	import {addPerson,getList} from '@/API/sqlite/person.js'
	import {getSimpleMainList} from '@/API/sqlite/mainm.js'
	import {getClassificationList} from '@/API/sqlite/classification.js'
	import {getSecurityQAList} from '@/API/sqlite/securityQA.js'
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad:function(){
			getSimpleMains().then(res => {
				this.list = res;
			}).catch(err => {console.error("home.vue onLoad 获取密码list失败，err is=====",err)})
			
		},
		methods: {
			testPage: function(){
				uni.navigateTo({
					url: '../test/test'
				})
			}
		}
	}
</script>

<style>

</style>
